package com.itheima.mapper;

import com.itheima.pojo.OrderSetting;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

public interface OrderSettingMapper {
    int findOrderSettingByOrderDate(Date orderDate);

    void importOrderSettings(OrderSetting orderSetting);

    void updateOrderSettings(OrderSetting orderSetting);

    List<OrderSetting> findAllByMoth(@Param("begin") String begin, @Param("end") String end);

    int updateOrderSettingByDate(@Param("updateDate")String updateDate,@Param("num")int num);

    OrderSetting findOrderSettingByDate(@Param("orderDate") Date orderDate);

    void updateReservationsByOrderDate(@Param("orderDate") Date orderDate);
}
